package com.atguigu.aoppreview;

import cn.hutool.core.util.IdUtil;
import org.springframework.stereotype.Service;

/**
 * @Author: shenhao
 * @CreatTime: 2024/11/3 14:28
 * @Version: 1.0
 */
@Service
public class PayServiceImpl implements PayService {
    @Override
    public void pay() {
        System.out.println("PayServiceImpl微信支付业务逻辑: "+ IdUtil.simpleUUID());
        int age = 10/0;//抛出异常以后有后置通知,没有环绕通知的下半场
    }
}
